package com.paomi.client.activity.person.presenter;

import com.hannesdorfmann.mosby3.mvp.MvpBasePresenter;
import com.hannesdorfmann.mosby3.mvp.MvpView;
import com.paomi.client.activity.person.View.OpinionView;
import com.paomi.client.bean.BaseJSON;
import com.paomi.client.net.Api;
import com.paomi.client.net.BaseCallback;
import com.paomi.client.net.Constants;

import retrofit2.Call;

public class OpinionPre extends MvpBasePresenter<OpinionView> {

    public void put(String msg){
        Api.getInstanceService(Constants.User_URL).putBug(msg).enqueue(new BaseCallback<BaseJSON>() {
            @Override
            public void onResponse(Call<BaseJSON> call, BaseJSON result) {
                getView().showMsg(result);
            }
        });
    }

}
